summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2012-06-12 16:20:42 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-31 09:45:50 +0400
commit58ef6a75c38e9faa7d19bb7d7b45fe0df02e8621 (patch)
tree20ce3f91f26f65e7c92f7c000188e0b052b879c0
parent39263d5e71d0fad09eab0d855a9407ad2af8378c (diff)
downloadop-kernel-dev-58ef6a75c38e9faa7d19bb7d7b45fe0df02e8621.zip
op-kernel-dev-58ef6a75c38e9faa7d19bb7d7b45fe0df02e8621.tar.gz
fuse: Convert to new freezing mechanism
Convert check in fuse_file_aio_write() to using new freeze protection. CC: fuse-devel@lists.sourceforge.net CC: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/fuse/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index b321a68..93d8d6c 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -944,9 +944,8 @@ static ssize_t fuse_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
return err;
count = ocount;
-
+ sb_start_write(inode->i_sb);
mutex_lock(&inode->i_mutex);
- vfs_check_frozen(inode->i_sb, SB_FREEZE_WRITE);
/* We can write back this queue in page reclaim */
current->backing_dev_info = mapping->backing_dev_info;
@@ -1004,6 +1003,7 @@ static ssize_t fuse_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
out:
current->backing_dev_info = NULL;
mutex_unlock(&inode->i_mutex);
+ sb_end_write(inode->i_sb);
return written ? written : err;
}
OpenPOWER on IntegriCloud