]> www.infradead.org Git - nvme.git/commitdiff
gfs2: some comment clarifications
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 18 Mar 2025 12:15:09 +0000 (13:15 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 18 Mar 2025 12:21:39 +0000 (13:21 +0100)
Since commit e1fa9ea85ce8 ("gfs2: Stop using glock holder auto-demotion
for now"), we unconditionally drop the inode glock before trying to
fault in more pages.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/file.c

index c9bb3be21d2ba7934581b7f1be358b4eee14bd91..fd1147aa3891d8fcead650bd28224eb284ddde5d 100644 (file)
@@ -820,7 +820,7 @@ static ssize_t gfs2_file_direct_read(struct kiocb *iocb, struct iov_iter *to,
        /*
         * In this function, we disable page faults when we're holding the
         * inode glock while doing I/O.  If a page fault occurs, we indicate
-        * that the inode glock may be dropped, fault in the pages manually,
+        * that the inode glock should be dropped, fault in the pages manually,
         * and retry.
         *
         * Unlike generic_file_read_iter, for reads, iomap_dio_rw can trigger
@@ -885,7 +885,7 @@ static ssize_t gfs2_file_direct_write(struct kiocb *iocb, struct iov_iter *from,
        /*
         * In this function, we disable page faults when we're holding the
         * inode glock while doing I/O.  If a page fault occurs, we indicate
-        * that the inode glock may be dropped, fault in the pages manually,
+        * that the inode glock should be dropped, fault in the pages manually,
         * and retry.
         *
         * For writes, iomap_dio_rw only triggers manual page faults, so we
@@ -957,7 +957,7 @@ static ssize_t gfs2_file_read_iter(struct kiocb *iocb, struct iov_iter *to)
        /*
         * In this function, we disable page faults when we're holding the
         * inode glock while doing I/O.  If a page fault occurs, we indicate
-        * that the inode glock may be dropped, fault in the pages manually,
+        * that the inode glock should be dropped, fault in the pages manually,
         * and retry.
         */
 
@@ -1024,7 +1024,7 @@ static ssize_t gfs2_file_buffered_write(struct kiocb *iocb,
        /*
         * In this function, we disable page faults when we're holding the
         * inode glock while doing I/O.  If a page fault occurs, we indicate
-        * that the inode glock may be dropped, fault in the pages manually,
+        * that the inode glock should be dropped, fault in the pages manually,
         * and retry.
         */