hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/fs/xfs/xfs_export.c
....@@ -4,20 +4,17 @@
44 * All Rights Reserved.
55 */
66 #include "xfs.h"
7
+#include "xfs_shared.h"
78 #include "xfs_format.h"
89 #include "xfs_log_format.h"
910 #include "xfs_trans_resv.h"
1011 #include "xfs_mount.h"
11
-#include "xfs_da_format.h"
12
-#include "xfs_da_btree.h"
1312 #include "xfs_dir2.h"
1413 #include "xfs_export.h"
1514 #include "xfs_inode.h"
1615 #include "xfs_trans.h"
1716 #include "xfs_inode_item.h"
18
-#include "xfs_trace.h"
1917 #include "xfs_icache.h"
20
-#include "xfs_log.h"
2118 #include "xfs_pnfs.h"
2219
2320 /*
....@@ -59,7 +56,7 @@
5956 fileid_type = FILEID_INO32_GEN_PARENT;
6057
6158 /*
62
- * If the the filesystem may contain 64bit inode numbers, we need
59
+ * If the filesystem may contain 64bit inode numbers, we need
6360 * to use larger file handles that can represent them.
6461 *
6562 * While we only allocate inodes that do not fit into 32 bits any
....@@ -223,18 +220,7 @@
223220 xfs_fs_nfs_commit_metadata(
224221 struct inode *inode)
225222 {
226
- struct xfs_inode *ip = XFS_I(inode);
227
- struct xfs_mount *mp = ip->i_mount;
228
- xfs_lsn_t lsn = 0;
229
-
230
- xfs_ilock(ip, XFS_ILOCK_SHARED);
231
- if (xfs_ipincount(ip))
232
- lsn = ip->i_itemp->ili_last_lsn;
233
- xfs_iunlock(ip, XFS_ILOCK_SHARED);
234
-
235
- if (!lsn)
236
- return 0;
237
- return xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
223
+ return xfs_log_force_inode(XFS_I(inode));
238224 }
239225
240226 const struct export_operations xfs_export_operations = {