mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
fs: semove set but not checked AOP_FLAG_UNINTERRUPTIBLE flag
Commitafddba49d1("fs: introduce write_begin, write_end, and perform_write aops") introduced AOP_FLAG_UNINTERRUPTIBLE flag which was checked in pagecache_write_begin(), but that check was removed by4e02ed4b4a("fs: remove prepare_write/commit_write"). Between these two commits, commitd9414774dc("cifs: Convert cifs to new aops.") added a check in cifs_write_begin(), but that check was soon removed by commita98ee8c1c7("[CIFS] fix regression in cifs_write_begin/cifs_write_end"). Therefore, AOP_FLAG_UNINTERRUPTIBLE flag is checked nowhere. Let's remove this flag. This patch has no functionality changes. Link: http://lkml.kernel.org/r/1489294781-53494-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp Signed-off-by: Tetsuo Handa <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Cc: Nick Piggin <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f44a2920c8
commit
c718a97514
9 changed files with 17 additions and 37 deletions
|
|
@ -694,8 +694,7 @@ struct address_space_operations {
|
|||
|
||||
write_end: After a successful write_begin, and data copy, write_end must
|
||||
be called. len is the original len passed to write_begin, and copied
|
||||
is the amount that was able to be copied (copied == len is always true
|
||||
if write_begin was called with the AOP_FLAG_UNINTERRUPTIBLE flag).
|
||||
is the amount that was able to be copied.
|
||||
|
||||
The filesystem must take care of unlocking the page and releasing it
|
||||
refcount, and updating i_size.
|
||||
|
|
|
|||
Loading…
Reference in a new issue