search for: io_ctl

Displaying 5 results from an estimated 5 matches for "io_ctl".

2013 Apr 03
0
[PATCH] Btrfs-progs: add a free space cache checker to fsck
...IG (32 * 1024) + +static int link_free_space(struct btrfs_free_space_ctl *ctl, + struct btrfs_free_space *info); +static void unlink_free_space(struct btrfs_free_space_ctl *ctl, + struct btrfs_free_space *info); +static void merge_space_tree(struct btrfs_free_space_ctl *ctl); + +struct io_ctl { + void *cur, *orig; + void *buffer; + struct btrfs_root *root; + unsigned long size; + u64 total_size; + int index; + int num_pages; + unsigned check_crcs:1; +}; + +static int io_ctl_init(struct io_ctl *io_ctl, u64 size, u64 ino, + struct btrfs_root *root) +{ + memset(io_ctl, 0, sizeof(st...
2012 Jan 11
12
[PATCH 00/11] Btrfs: some patches for 3.3
...The patchset is also available in this repo: git://repo.or.cz/linux-btrfs-devel.git for-chris Note there''s a small confict with Al Viro''s vfs changes. Li Zefan (11): Btrfs: add pinned extents to on-disk free space cache correctly Btrfs: avoid possible NULL deref in io_ctl_drop_pages() Btrfs: check the return value of io_ctl_init() Btrfs: remove BUG_ON()s in btrfs_ioctl_setflags() Btrfs: reserve metadata space in btrfs_ioctl_setflags() Btrfs: don''t pass a trans handle unnecessarily in volumes.c Btrfs: don''t pre-allocate...
2011 Dec 28
13
fstrim on BTRFS
Hi! With 3.2-rc4 (probably earlier), Ext4 seems to remember what areas it trimmed: merkaba:~> fstrim -v /boot /boot: 224657408 bytes were trimmed merkaba:~> fstrim -v /boot /boot: 0 bytes were trimmed But BTRFS does not: merkaba:~> fstrim -v / /: 4431613952 bytes were trimmed merkaba:~> fstrim -v / /: 4341846016 bytes were trimmed Is it planned to add this feature to BTRFS
2013 Apr 30
13
WARNING: at fs/btrfs/free-space-cache.c:921 __btrfs_write_out_cache+0x6b9/0x9a0 [btrfs]()
...such). I created the btrfs on the linux 3.8.0-19-lowlatency kernel with: a@ewzw032:~$ btrfs version Btrfs v0.20-rc1 Line 921 of free-space-cache.c (-> http://pastebin.com/yNQMPG3P) is the WARN_ON(1) in this block: /* Make sure we can fit our crcs into the first page */ if (io_ctl.check_crcs && (io_ctl.num_pages * sizeof(u32)) >= PAGE_CACHE_SIZE) { WARN_ON(1); goto out_nospc; } Well - what can be done about it? Here are my kernel traces: Apr 29 12:59:31 ewzw032 kernel: [ 6275.016478] ------------[ cut here...
2012 May 07
53
kernel 3.3.4 damages filesystem (?)
...ASC=0x11 ASCQ=0x4 sd 5:0:0:0: [sdf] CDB: cdb[0]=0x88: 88 00 00 00 00 01 02 d7 b3 08 00 00 00 08 00 00 end_request: I/O error, dev sdf, sector 4342657800 ata5: EH complete btrfs: error reading free space cache BUG: unable to handle kernel NULL pointer dereference at 00000001 IP: [<c1295c36>] io_ctl_drop_pages+0x26/0x50 *pdpt = 0000000029712001 *pde = 0000000000000000 Oops: 0002 [#1] ============== syslogd output ====================== ============== kernel 3.2.9 after the 3.3.4 try ==== Message from syslogd@Arktur at Mon May 7 11:21:55 2012 Arktur kernel: Oops: 0002 [#1] Message from sy...