summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2022-07-01 14:15:32 +0200
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2022-08-03 17:25:06 +0200
commitcf760ec0a0b4015ccf3b5e9ecb4caf6b5fb52f0b (patch)
treece8ad0caf951de20d4fecb47d7d0c391d4135eba /fs
parentfs/ntfs3: Add new argument is_mft to ntfs_mark_rec_free (diff)
downloadlinux-cf760ec0a0b4015ccf3b5e9ecb4caf6b5fb52f0b.tar.xz
linux-cf760ec0a0b4015ccf3b5e9ecb4caf6b5fb52f0b.zip
fs/ntfs3: Make static function attr_load_runs
attr_load_runs is an internal function Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ntfs3/attrib.c4
-rw-r--r--fs/ntfs3/ntfs_fs.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/fs/ntfs3/attrib.c b/fs/ntfs3/attrib.c
index 3d64335fa4c7..7454bd3ea02d 100644
--- a/fs/ntfs3/attrib.c
+++ b/fs/ntfs3/attrib.c
@@ -84,8 +84,8 @@ static inline bool attr_must_be_resident(struct ntfs_sb_info *sbi,
/*
* attr_load_runs - Load all runs stored in @attr.
*/
-int attr_load_runs(struct ATTRIB *attr, struct ntfs_inode *ni,
- struct runs_tree *run, const CLST *vcn)
+static int attr_load_runs(struct ATTRIB *attr, struct ntfs_inode *ni,
+ struct runs_tree *run, const CLST *vcn)
{
int err;
CLST svcn = le64_to_cpu(attr->nres.svcn);
diff --git a/fs/ntfs3/ntfs_fs.h b/fs/ntfs3/ntfs_fs.h
index 34c6ee56225c..83ed27bb624e 100644
--- a/fs/ntfs3/ntfs_fs.h
+++ b/fs/ntfs3/ntfs_fs.h
@@ -408,8 +408,6 @@ enum REPARSE_SIGN {
};
/* Functions from attrib.c */
-int attr_load_runs(struct ATTRIB *attr, struct ntfs_inode *ni,
- struct runs_tree *run, const CLST *vcn);
int attr_allocate_clusters(struct ntfs_sb_info *sbi, struct runs_tree *run,
CLST vcn, CLST lcn, CLST len, CLST *pre_alloc,
enum ALLOCATE_OPT opt, CLST *alen, const size_t fr,