hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/fs/stack.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/export.h>
23 #include <linux/fs.h>
34 #include <linux/fs_stack.h>
....@@ -21,11 +22,10 @@
2122 i_size = i_size_read(src);
2223
2324 /*
24
- * But if CONFIG_LBDAF (on 32-bit), we ought to make an effort to
25
- * keep the two halves of i_blocks in sync despite SMP or PREEMPT -
26
- * though stat's generic_fillattr() doesn't bother, and we won't be
27
- * applying quotas (where i_blocks does become important) at the
28
- * upper level.
25
+ * But on 32-bit, we ought to make an effort to keep the two halves of
26
+ * i_blocks in sync despite SMP or PREEMPTION - though stat's
27
+ * generic_fillattr() doesn't bother, and we won't be applying quotas
28
+ * (where i_blocks does become important) at the upper level.
2929 *
3030 * We don't actually know what locking is used at the lower level;
3131 * but if it's a filesystem that supports quotas, it will be using
....@@ -38,15 +38,15 @@
3838 spin_unlock(&src->i_lock);
3939
4040 /*
41
- * If CONFIG_SMP or CONFIG_PREEMPT on 32-bit, it's vital for
41
+ * If CONFIG_SMP or CONFIG_PREEMPTION on 32-bit, it's vital for
4242 * fsstack_copy_inode_size() to hold some lock around
4343 * i_size_write(), otherwise i_size_read() may spin forever (see
4444 * include/linux/fs.h). We don't necessarily hold i_mutex when this
4545 * is called, so take i_lock for that case.
4646 *
47
- * And if CONFIG_LBDAF (on 32-bit), continue our effort to keep the
48
- * two halves of i_blocks in sync despite SMP or PREEMPT: use i_lock
49
- * for that case too, and do both at once by combining the tests.
47
+ * And if on 32-bit, continue our effort to keep the two halves of
48
+ * i_blocks in sync despite SMP or PREEMPTION: use i_lock for that case
49
+ * too, and do both at once by combining the tests.
5050 *
5151 * There is none of this locking overhead in the 64-bit case.
5252 */