diff options
author | Bob Peterson <rpeterso@redhat.com> | 2018-04-06 13:07:45 -0700 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2018-04-12 10:07:51 -0700 |
commit | 3e7aafc39c59c639ebd5961f893743f076df9b4e (patch) | |
tree | c8d79c8ae01e09510e22f18b56757f1b8df507e5 /Documentation/filesystems | |
parent | 3fd5d3ad35dc44aaf0f28d60cc0eb75887bff54d (diff) | |
download | op-kernel-dev-3e7aafc39c59c639ebd5961f893743f076df9b4e.zip op-kernel-dev-3e7aafc39c59c639ebd5961f893743f076df9b4e.tar.gz |
GFS2: Minor improvements to comments and documentation
This patch simply fixes some comments and the gfs2-glocks.txt file:
Places where i_rwsem was called i_mutex, and adding i_rw_mutex.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r-- | Documentation/filesystems/gfs2-glocks.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/filesystems/gfs2-glocks.txt b/Documentation/filesystems/gfs2-glocks.txt index 1fb12f9..7059623 100644 --- a/Documentation/filesystems/gfs2-glocks.txt +++ b/Documentation/filesystems/gfs2-glocks.txt @@ -100,14 +100,15 @@ indicates that it is caching uptodate data. Glock locking order within GFS2: - 1. i_mutex (if required) + 1. i_rwsem (if required) 2. Rename glock (for rename only) 3. Inode glock(s) (Parents before children, inodes at "same level" with same parent in lock number order) 4. Rgrp glock(s) (for (de)allocation operations) 5. Transaction glock (via gfs2_trans_begin) for non-read operations - 6. Page lock (always last, very important!) + 6. i_rw_mutex (if required) + 7. Page lock (always last, very important!) There are two glocks per inode. One deals with access to the inode itself (locking order as above), and the other, known as the iopen |