From: Theodore Ts'o Date: Tue, 10 Jan 2012 16:54:07 +0000 (-0500) Subject: Merge branch 'for_linus' into for_linus_merged X-Git-Tag: v3.3-rc1~114^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff9cb1c4eead5e4c292e75cd3170a82d66944101;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git Merge branch 'for_linus' into for_linus_merged Conflicts: fs/ext4/ioctl.c --- ff9cb1c4eead5e4c292e75cd3170a82d66944101 diff --cc fs/ext4/ioctl.c index e87a932,b81a5f1..6eee255 --- a/fs/ext4/ioctl.c +++ b/fs/ext4/ioctl.c @@@ -193,12 -193,13 +197,13 @@@ setversion_out EXT4_FEATURE_RO_COMPAT_BIGALLOC)) { ext4_msg(sb, KERN_ERR, "Online resizing not supported with bigalloc"); - return -EOPNOTSUPP; + err = -EOPNOTSUPP; + goto group_extend_out; } - err = mnt_want_write(filp->f_path.mnt); + err = mnt_want_write_file(filp); if (err) - return err; + goto group_extend_out; err = ext4_group_extend(sb, EXT4_SB(sb)->s_es, n_blocks_count); if (EXT4_SB(sb)->s_journal) { @@@ -208,9 -209,10 +213,9 @@@ } if (err == 0) err = err2; - - mnt_drop_write(filp->f_path.mnt); + mnt_drop_write_file(filp); + group_extend_out: ext4_resize_end(sb); - return err; } @@@ -250,9 -252,7 +255,8 @@@ err = ext4_move_extents(filp, donor_filp, me.orig_start, me.donor_start, me.len, &me.moved_len); + mnt_drop_write_file(filp); - if (me.moved_len > 0) - file_remove_suid(donor_filp); + mnt_drop_write(filp->f_path.mnt); if (copy_to_user((struct move_extent __user *)arg, &me, sizeof(me))) @@@ -278,12 -280,13 +284,13 @@@ mext_out EXT4_FEATURE_RO_COMPAT_BIGALLOC)) { ext4_msg(sb, KERN_ERR, "Online resizing not supported with bigalloc"); - return -EOPNOTSUPP; + err = -EOPNOTSUPP; + goto group_add_out; } - err = mnt_want_write(filp->f_path.mnt); + err = mnt_want_write_file(filp); if (err) - return err; + goto group_add_out; err = ext4_group_add(sb, &input); if (EXT4_SB(sb)->s_journal) { @@@ -293,9 -296,10 +300,9 @@@ } if (err == 0) err = err2; - - mnt_drop_write(filp->f_path.mnt); + mnt_drop_write_file(filp); + group_add_out: ext4_resize_end(sb); - return err; }