]> www.infradead.org Git - nvme.git/commitdiff
bcachefs: fs-common.c -> namei.c
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 20 Mar 2025 14:53:52 +0000 (10:53 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 24 Mar 2025 13:50:36 +0000 (09:50 -0400)
name <-> inode, code for managing the relationships between inodes and
dirents.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/Makefile
fs/bcachefs/error.c
fs/bcachefs/fs-ioctl.c
fs/bcachefs/fs.c
fs/bcachefs/fsck.c
fs/bcachefs/namei.c [moved from fs/bcachefs/fs-common.c with 99% similarity]
fs/bcachefs/namei.h [moved from fs/bcachefs/fs-common.h with 93% similarity]
fs/bcachefs/recovery.c

index 1cf17a16af9f91b83ba91487ab35996a6c711c12..9af65079374fa94af75a19d47cd89db4060f9e8a 100644 (file)
@@ -41,7 +41,6 @@ bcachefs-y            :=      \
        extent_update.o         \
        eytzinger.o             \
        fs.o                    \
-       fs-common.o             \
        fs-ioctl.o              \
        fs-io.o                 \
        fs-io-buffered.o        \
@@ -64,6 +63,7 @@ bcachefs-y            :=      \
        migrate.o               \
        move.o                  \
        movinggc.o              \
+       namei.o                 \
        nocow_locking.o         \
        opts.o                  \
        printbuf.o              \
index 6d68c89a49b21297ac7fc4eee95d302415027e25..207f35d3cce27672fa4daac07fe30fc4f916321f 100644 (file)
@@ -3,8 +3,8 @@
 #include "btree_cache.h"
 #include "btree_iter.h"
 #include "error.h"
-#include "fs-common.h"
 #include "journal.h"
+#include "namei.h"
 #include "recovery_passes.h"
 #include "super.h"
 #include "thread_with_file.h"
index 5b47b94fe1ea4dd00634caff9ccecb6c4364d6e3..e3a3230fc65284525807bfc151af6e65e358a78c 100644 (file)
@@ -5,8 +5,8 @@
 #include "chardev.h"
 #include "dirent.h"
 #include "fs.h"
-#include "fs-common.h"
 #include "fs-ioctl.h"
+#include "namei.h"
 #include "quota.h"
 
 #include <linux/compat.h>
index 4453dd2f888efbe823997642572a6ddf766060fc..273078ceb4df3bfca88243c6dd37e7092e09a951 100644 (file)
@@ -11,7 +11,6 @@
 #include "errcode.h"
 #include "extents.h"
 #include "fs.h"
-#include "fs-common.h"
 #include "fs-io.h"
 #include "fs-ioctl.h"
 #include "fs-io-buffered.h"
@@ -22,6 +21,7 @@
 #include "io_read.h"
 #include "journal.h"
 #include "keylist.h"
+#include "namei.h"
 #include "quota.h"
 #include "rebalance.h"
 #include "snapshot.h"
index 0e85131d0af88b1bada3fb4139288245ab3233c4..4271ce4a4c8ce86129e69e85fe61d00f29e68076 100644 (file)
 #include "dirent.h"
 #include "error.h"
 #include "fs.h"
-#include "fs-common.h"
 #include "fsck.h"
 #include "inode.h"
 #include "keylist.h"
+#include "namei.h"
 #include "recovery_passes.h"
 #include "snapshot.h"
 #include "super.h"
similarity index 99%
rename from fs/bcachefs/fs-common.c
rename to fs/bcachefs/namei.c
index fbc3da59536c7415c57a89f4671c0b8accf92396..bc83acbf54145f9fb4ac2daa43de1414c6f4bb7a 100644 (file)
@@ -4,8 +4,8 @@
 #include "acl.h"
 #include "btree_update.h"
 #include "dirent.h"
-#include "fs-common.h"
 #include "inode.h"
+#include "namei.h"
 #include "subvolume.h"
 #include "xattr.h"
 
similarity index 93%
rename from fs/bcachefs/fs-common.h
rename to fs/bcachefs/namei.h
index 2b59210bb5e8a9f68fc313a3e28e1267538f9362..7383b76270e9c5fae028f85ad454808706c3af32 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _BCACHEFS_FS_COMMON_H
-#define _BCACHEFS_FS_COMMON_H
+#ifndef _BCACHEFS_NAMEI_H
+#define _BCACHEFS_NAMEI_H
 
 #include "dirent.h"
 
@@ -44,4 +44,4 @@ bool bch2_reinherit_attrs(struct bch_inode_unpacked *,
 
 int bch2_inum_to_path(struct btree_trans *, subvol_inum, struct printbuf *);
 
-#endif /* _BCACHEFS_FS_COMMON_H */
+#endif /* _BCACHEFS_NAMEI_H */
index a6e26733854dfb8372661be7d93bdd79f29ff44a..266c5770c82421280110a52025ed7e327371096a 100644 (file)
 #include "disk_accounting.h"
 #include "errcode.h"
 #include "error.h"
-#include "fs-common.h"
 #include "journal_io.h"
 #include "journal_reclaim.h"
 #include "journal_seq_blacklist.h"
 #include "logged_ops.h"
 #include "move.h"
+#include "namei.h"
 #include "quota.h"
 #include "rebalance.h"
 #include "recovery.h"