search for: btrfs_ioctl_setflag

Displaying 3 results from an estimated 3 matches for "btrfs_ioctl_setflag".

Did you mean: btrfs_ioctl_setflags
2010 Jul 01
0
[PATCH] btrfs: handle errors for FS_IOC_SETFLAGS
Makes btrfs_ioctl_setflags return -ENOSPC and other errors when necessary. Signed-off-by: Sean Bartell <wingedtachikoma@gmail.com> --- I ran chattr -R on a full FS and btrfs crashed. This overlaps with the patch series being worked on by Jeff Mahoney. fs/btrfs/ioctl.c | 17 ++++++++++++----- 1 files changed, 12 i...
2012 Jan 11
12
[PATCH 00/11] Btrfs: some patches for 3.3
...e''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 btrfs bio Btrfs: simplfy calculation of stripe length for discard operation Btrfs: rewrite btrfs_trim_bloc...
2010 Sep 03
0
[PATCH 1/2] btrfs: document where we use BUG_ON instead of error handling
...} ret = btrfs_update_inode(trans, root, inode); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); btrfs_end_transaction(trans, root); } diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 9254b3d..18ba85b 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -203,7 +203,7 @@ static int btrfs_ioctl_setflags(struct file *file, void __user *arg) BUG_ON(!trans); ret = btrfs_update_inode(trans, root, inode); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); btrfs_update_iflags(inode); inode->i_ctime = CURRENT_TIME; @@ -318,7 +318,7 @@ static noinline int create_subvol(struct btrfs_root *root,...