summaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2020-05-23 01:01:13 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-05-23 01:01:13 +0300
commit1f422417945d08731e2915e0addb976f11b3a85a (patch)
tree7ef06daa2a34c3b527e3eb7a064bc4af0c9100c0 /fs/jbd2/commit.c
parentc177e2975430cec296aa52a0d413e447417d6cf9 (diff)
parent6d15120b282e49811a47f2f6d6b749d178be7e99 (diff)
downloadlinux-1f422417945d08731e2915e0addb976f11b3a85a.tar.xz
Merge branch 'timers/drivers/timer-ti' into timers/drivers/next
Diffstat (limited to 'fs/jbd2/commit.c')
-rw-r--r--fs/jbd2/commit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c
index 27373f5792a4..e855d8260433 100644
--- a/fs/jbd2/commit.c
+++ b/fs/jbd2/commit.c
@@ -997,9 +997,10 @@ restart_loop:
* journalled data) we need to unmap buffer and clear
* more bits. We also need to be careful about the check
* because the data page mapping can get cleared under
- * out hands, which alse need not to clear more bits
- * because the page and buffers will be freed and can
- * never be reused once we are done with them.
+ * our hands. Note that if mapping == NULL, we don't
+ * need to make buffer unmapped because the page is
+ * already detached from the mapping and buffers cannot
+ * get reused.
*/
mapping = READ_ONCE(bh->b_page->mapping);
if (mapping && !sb_is_blkdev_sb(mapping->host->i_sb)) {