xfs
[Top] [All Lists]

[PATCH 7/8] Documentation: Correct s_umount state for freeze_fs/unfreeze

To: linux-fsdevel@xxxxxxxxxxxxxxx
Subject: [PATCH 7/8] Documentation: Correct s_umount state for freeze_fs/unfreeze_fs
From: Jan Kara <jack@xxxxxxx>
Date: Fri, 20 Jan 2012 21:34:45 +0100
Cc: Eric Sandeen <sandeen@xxxxxxxxxxx>, Dave Chinner <dchinner@xxxxxxxxxx>, Surbhi Palande <csurbhi@xxxxxxxxx>, Kamal Mostafa <kamal@xxxxxxxxxxxxx>, Christoph Hellwig <hch@xxxxxxxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx, Valerie Aurora <val@xxxxxxxxxxxxxxxxx>, Jan Kara <jack@xxxxxxx>
In-reply-to: <1327091686-23177-1-git-send-email-jack@xxxxxxx>
References: <1327091686-23177-1-git-send-email-jack@xxxxxxx>
From: Valerie Aurora <val@xxxxxxxxxxxxxxxxx>

freeze_fs/unfreeze_fs ops are called with s_umount held for write, not read.

Signed-off-by: Valerie Aurora <val@xxxxxxxxxxxxxxxxx>
Signed-off-by: Kamal Mostafa <kamal@xxxxxxxxxxxxx>
Reviewed-by: Christoph Hellwig <hch@xxxxxx>
Signed-off-by: Jan Kara <jack@xxxxxxx>
---
 Documentation/filesystems/Locking |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/filesystems/Locking 
b/Documentation/filesystems/Locking
index d819ba1..7e46a94 100644
--- a/Documentation/filesystems/Locking
+++ b/Documentation/filesystems/Locking
@@ -134,8 +134,8 @@ evict_inode:
 put_super:             write
 write_super:           read
 sync_fs:               read
-freeze_fs:             read
-unfreeze_fs:           read
+freeze_fs:             write
+unfreeze_fs:           write
 statfs:                        maybe(read)     (see below)
 remount_fs:            write
 umount_begin:          no
-- 
1.7.1

<Prev in Thread] Current Thread [Next in Thread>