diff options
author | Jan Kara <jack@suse.cz> | 2012-06-12 16:20:35 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-31 09:40:38 +0400 |
commit | eb04c28288bb0098d0e75d81ba2a575239de71d8 (patch) | |
tree | 82912fd7c78be269560a8af7d8516918c279255b /fs/open.c | |
parent | 5accdf82ba25cacefd6c1867f1704beb4d244cdd (diff) | |
download | renesas_kernel-eb04c28288bb0098d0e75d81ba2a575239de71d8.tar.gz renesas_kernel-eb04c28288bb0098d0e75d81ba2a575239de71d8.tar.bz2 renesas_kernel-eb04c28288bb0098d0e75d81ba2a575239de71d8.zip |
fs: Add freezing handling to mnt_want_write() / mnt_drop_write()
Most of places where we want freeze protection coincides with the places where
we also have remount-ro protection. So make mnt_want_write() and
mnt_drop_write() (and their _file alternative) prevent freezing as well.
For the few cases that are really interested only in remount-ro protection
provide new function variants.
BugLink: https://bugs.launchpad.net/bugs/897421
Tested-by: Kamal Mostafa <kamal@canonical.com>
Tested-by: Peter M. Petrakis <peter.petrakis@canonical.com>
Tested-by: Dann Frazier <dann.frazier@canonical.com>
Tested-by: Massimo Morana <massimo.morana@canonical.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/open.c b/fs/open.c index 8d2c8970029..9ddc1856550 100644 --- a/fs/open.c +++ b/fs/open.c @@ -620,7 +620,7 @@ static inline int __get_file_write_access(struct inode *inode, /* * Balanced in __fput() */ - error = mnt_want_write(mnt); + error = __mnt_want_write(mnt); if (error) put_write_access(inode); } |