diff options
| author | Fabian Frederick <fabf@skynet.be> | 2017-02-27 17:27:54 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-02-27 21:43:45 -0500 |
| commit | c1618208511f070883a3d079ef7f78024e7faf90 (patch) | |
| tree | d9f4f36d5732fffa1c382e4ea36b457f5a0b1603 /fs/affs | |
| parent | 1bafd6f164d9ec9bf2fa9829051fbeb36342be0b (diff) | |
fs/affs: add prefix to some functions
secs_to_datestamp(time64_t secs, struct affs_date *ds);
prot_to_mode(u32 prot);
mode_to_prot(struct inode *inode);
were declared without affs_ prefix
Link: http://lkml.kernel.org/r/20170109191208.6085-6-fabf@skynet.be
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/affs')
| -rw-r--r-- | fs/affs/affs.h | 6 | ||||
| -rw-r--r-- | fs/affs/amigaffs.c | 6 | ||||
| -rw-r--r-- | fs/affs/inode.c | 9 | ||||
| -rw-r--r-- | fs/affs/namei.c | 6 | ||||
| -rw-r--r-- | fs/affs/super.c | 2 |
5 files changed, 15 insertions, 14 deletions
diff --git a/fs/affs/affs.h b/fs/affs/affs.h index 1b5542818b2c..2f8bab390d13 100644 --- a/fs/affs/affs.h +++ b/fs/affs/affs.h | |||
| @@ -138,9 +138,9 @@ extern int affs_remove_hash(struct inode *dir, struct buffer_head *rem_bh); | |||
| 138 | extern int affs_remove_header(struct dentry *dentry); | 138 | extern int affs_remove_header(struct dentry *dentry); |
| 139 | extern u32 affs_checksum_block(struct super_block *sb, struct buffer_head *bh); | 139 | extern u32 affs_checksum_block(struct super_block *sb, struct buffer_head *bh); |
| 140 | extern void affs_fix_checksum(struct super_block *sb, struct buffer_head *bh); | 140 | extern void affs_fix_checksum(struct super_block *sb, struct buffer_head *bh); |
| 141 | extern void secs_to_datestamp(time64_t secs, struct affs_date *ds); | 141 | extern void affs_secs_to_datestamp(time64_t secs, struct affs_date *ds); |
| 142 | extern umode_t prot_to_mode(u32 prot); | 142 | extern umode_t affs_prot_to_mode(u32 prot); |
| 143 | extern void mode_to_prot(struct inode *inode); | 143 | extern void affs_mode_to_prot(struct inode *inode); |
| 144 | __printf(3, 4) | 144 | __printf(3, 4) |
| 145 | extern void affs_error(struct super_block *sb, const char *function, | 145 | extern void affs_error(struct super_block *sb, const char *function, |
| 146 | const char *fmt, ...); | 146 | const char *fmt, ...); |
diff --git a/fs/affs/amigaffs.c b/fs/affs/amigaffs.c index fd7a7542956d..b573c3b9a328 100644 --- a/fs/affs/amigaffs.c +++ b/fs/affs/amigaffs.c | |||
| @@ -367,7 +367,7 @@ affs_fix_checksum(struct super_block *sb, struct buffer_head *bh) | |||
| 367 | } | 367 | } |
| 368 | 368 | ||
| 369 | void | 369 | void |
| 370 | secs_to_datestamp(time64_t secs, struct affs_date *ds) | 370 | affs_secs_to_datestamp(time64_t secs, struct affs_date *ds) |
| 371 | { | 371 | { |
| 372 | u32 days; | 372 | u32 days; |
| 373 | u32 minute; | 373 | u32 minute; |
| @@ -386,7 +386,7 @@ secs_to_datestamp(time64_t secs, struct affs_date *ds) | |||
| 386 | } | 386 | } |
| 387 | 387 | ||
| 388 | umode_t | 388 | umode_t |
| 389 | prot_to_mode(u32 prot) | 389 | affs_prot_to_mode(u32 prot) |
| 390 | { | 390 | { |
| 391 | umode_t mode = 0; | 391 | umode_t mode = 0; |
| 392 | 392 | ||
| @@ -413,7 +413,7 @@ prot_to_mode(u32 prot) | |||
| 413 | } | 413 | } |
| 414 | 414 | ||
| 415 | void | 415 | void |
| 416 | mode_to_prot(struct inode *inode) | 416 | affs_mode_to_prot(struct inode *inode) |
| 417 | { | 417 | { |
| 418 | u32 prot = AFFS_I(inode)->i_protect; | 418 | u32 prot = AFFS_I(inode)->i_protect; |
| 419 | umode_t mode = inode->i_mode; | 419 | umode_t mode = inode->i_mode; |
diff --git a/fs/affs/inode.c b/fs/affs/inode.c index fe4e1290dbb5..a5e6097eb5a9 100644 --- a/fs/affs/inode.c +++ b/fs/affs/inode.c | |||
| @@ -69,7 +69,7 @@ struct inode *affs_iget(struct super_block *sb, unsigned long ino) | |||
| 69 | if (affs_test_opt(sbi->s_flags, SF_SETMODE)) | 69 | if (affs_test_opt(sbi->s_flags, SF_SETMODE)) |
| 70 | inode->i_mode = sbi->s_mode; | 70 | inode->i_mode = sbi->s_mode; |
| 71 | else | 71 | else |
| 72 | inode->i_mode = prot_to_mode(prot); | 72 | inode->i_mode = affs_prot_to_mode(prot); |
| 73 | 73 | ||
| 74 | id = be16_to_cpu(tail->uid); | 74 | id = be16_to_cpu(tail->uid); |
| 75 | if (id == 0 || affs_test_opt(sbi->s_flags, SF_SETUID)) | 75 | if (id == 0 || affs_test_opt(sbi->s_flags, SF_SETUID)) |
| @@ -184,11 +184,12 @@ affs_write_inode(struct inode *inode, struct writeback_control *wbc) | |||
| 184 | } | 184 | } |
| 185 | tail = AFFS_TAIL(sb, bh); | 185 | tail = AFFS_TAIL(sb, bh); |
| 186 | if (tail->stype == cpu_to_be32(ST_ROOT)) { | 186 | if (tail->stype == cpu_to_be32(ST_ROOT)) { |
| 187 | secs_to_datestamp(inode->i_mtime.tv_sec,&AFFS_ROOT_TAIL(sb, bh)->root_change); | 187 | affs_secs_to_datestamp(inode->i_mtime.tv_sec, |
| 188 | &AFFS_ROOT_TAIL(sb, bh)->root_change); | ||
| 188 | } else { | 189 | } else { |
| 189 | tail->protect = cpu_to_be32(AFFS_I(inode)->i_protect); | 190 | tail->protect = cpu_to_be32(AFFS_I(inode)->i_protect); |
| 190 | tail->size = cpu_to_be32(inode->i_size); | 191 | tail->size = cpu_to_be32(inode->i_size); |
| 191 | secs_to_datestamp(inode->i_mtime.tv_sec,&tail->change); | 192 | affs_secs_to_datestamp(inode->i_mtime.tv_sec, &tail->change); |
| 192 | if (!(inode->i_ino == AFFS_SB(sb)->s_root_block)) { | 193 | if (!(inode->i_ino == AFFS_SB(sb)->s_root_block)) { |
| 193 | uid = i_uid_read(inode); | 194 | uid = i_uid_read(inode); |
| 194 | gid = i_gid_read(inode); | 195 | gid = i_gid_read(inode); |
| @@ -249,7 +250,7 @@ affs_notify_change(struct dentry *dentry, struct iattr *attr) | |||
| 249 | mark_inode_dirty(inode); | 250 | mark_inode_dirty(inode); |
| 250 | 251 | ||
| 251 | if (attr->ia_valid & ATTR_MODE) | 252 | if (attr->ia_valid & ATTR_MODE) |
| 252 | mode_to_prot(inode); | 253 | affs_mode_to_prot(inode); |
| 253 | out: | 254 | out: |
| 254 | return error; | 255 | return error; |
| 255 | } | 256 | } |
diff --git a/fs/affs/namei.c b/fs/affs/namei.c index 04c3156ff411..906ff5be66c2 100644 --- a/fs/affs/namei.c +++ b/fs/affs/namei.c | |||
| @@ -272,7 +272,7 @@ affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) | |||
| 272 | return -ENOSPC; | 272 | return -ENOSPC; |
| 273 | 273 | ||
| 274 | inode->i_mode = mode; | 274 | inode->i_mode = mode; |
| 275 | mode_to_prot(inode); | 275 | affs_mode_to_prot(inode); |
| 276 | mark_inode_dirty(inode); | 276 | mark_inode_dirty(inode); |
| 277 | 277 | ||
| 278 | inode->i_op = &affs_file_inode_operations; | 278 | inode->i_op = &affs_file_inode_operations; |
| @@ -302,7 +302,7 @@ affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) | |||
| 302 | return -ENOSPC; | 302 | return -ENOSPC; |
| 303 | 303 | ||
| 304 | inode->i_mode = S_IFDIR | mode; | 304 | inode->i_mode = S_IFDIR | mode; |
| 305 | mode_to_prot(inode); | 305 | affs_mode_to_prot(inode); |
| 306 | 306 | ||
| 307 | inode->i_op = &affs_dir_inode_operations; | 307 | inode->i_op = &affs_dir_inode_operations; |
| 308 | inode->i_fop = &affs_dir_operations; | 308 | inode->i_fop = &affs_dir_operations; |
| @@ -348,7 +348,7 @@ affs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) | |||
| 348 | inode_nohighmem(inode); | 348 | inode_nohighmem(inode); |
| 349 | inode->i_data.a_ops = &affs_symlink_aops; | 349 | inode->i_data.a_ops = &affs_symlink_aops; |
| 350 | inode->i_mode = S_IFLNK | 0777; | 350 | inode->i_mode = S_IFLNK | 0777; |
| 351 | mode_to_prot(inode); | 351 | affs_mode_to_prot(inode); |
| 352 | 352 | ||
| 353 | error = -EIO; | 353 | error = -EIO; |
| 354 | bh = affs_bread(sb, inode->i_ino); | 354 | bh = affs_bread(sb, inode->i_ino); |
diff --git a/fs/affs/super.c b/fs/affs/super.c index 98bd95291694..37532538e8ab 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
| @@ -32,7 +32,7 @@ affs_commit_super(struct super_block *sb, int wait) | |||
| 32 | struct affs_root_tail *tail = AFFS_ROOT_TAIL(sb, bh); | 32 | struct affs_root_tail *tail = AFFS_ROOT_TAIL(sb, bh); |
| 33 | 33 | ||
| 34 | lock_buffer(bh); | 34 | lock_buffer(bh); |
| 35 | secs_to_datestamp(ktime_get_real_seconds(), &tail->disk_change); | 35 | affs_secs_to_datestamp(ktime_get_real_seconds(), &tail->disk_change); |
| 36 | affs_fix_checksum(sb, bh); | 36 | affs_fix_checksum(sb, bh); |
| 37 | unlock_buffer(bh); | 37 | unlock_buffer(bh); |
| 38 | 38 | ||
