mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
ufs: move truncate code into inode.c
It is closely tied to block pointers handling there, can benefit from existing helpers, etc. - no point keeping them apart. Trimmed the trailing whitespaces in inode.c at the same time. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -5,5 +5,5 @@
|
||||
obj-$(CONFIG_UFS_FS) += ufs.o
|
||||
|
||||
ufs-objs := balloc.o cylinder.o dir.o file.o ialloc.o inode.o \
|
||||
namei.o super.o symlink.o truncate.o util.o
|
||||
namei.o super.o symlink.o util.o
|
||||
ccflags-$(CONFIG_UFS_DEBUG) += -DDEBUG
|
||||
|
||||
480
fs/ufs/inode.c
480
fs/ufs/inode.c
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -122,7 +122,7 @@ extern struct inode *ufs_iget(struct super_block *, unsigned long);
|
||||
extern int ufs_write_inode (struct inode *, struct writeback_control *);
|
||||
extern int ufs_sync_inode (struct inode *);
|
||||
extern void ufs_evict_inode (struct inode *);
|
||||
extern int ufs_getfrag_block (struct inode *inode, sector_t fragment, struct buffer_head *bh_result, int create);
|
||||
extern int ufs_setattr(struct dentry *dentry, struct iattr *attr);
|
||||
|
||||
/* namei.c */
|
||||
extern const struct file_operations ufs_dir_operations;
|
||||
@@ -140,10 +140,6 @@ void ufs_mark_sb_dirty(struct super_block *sb);
|
||||
extern const struct inode_operations ufs_fast_symlink_inode_operations;
|
||||
extern const struct inode_operations ufs_symlink_inode_operations;
|
||||
|
||||
/* truncate.c */
|
||||
extern void ufs_truncate_blocks(struct inode *);
|
||||
extern int ufs_setattr(struct dentry *dentry, struct iattr *attr);
|
||||
|
||||
static inline struct ufs_sb_info *UFS_SB(struct super_block *sb)
|
||||
{
|
||||
return sb->s_fs_info;
|
||||
|
||||
Reference in New Issue
Block a user