Commit c71510b3 authored by Yuezhang.Mo's avatar Yuezhang.Mo Committed by Namjae Jeon

exfat: remove argument 'sector' from exfat_get_dentry()

No any function uses argument 'sector', remove it.
Reviewed-by: default avatarAndy.Wu <Andy.Wu@sony.com>
Reviewed-by: default avatarAoyama, Wataru <wataru.aoyama@sony.com>
Acked-by: default avatarSungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: default avatarYuezhang.Mo <Yuezhang.Mo@sony.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
parent 1ed147e2
...@@ -105,7 +105,7 @@ int exfat_load_bitmap(struct super_block *sb) ...@@ -105,7 +105,7 @@ int exfat_load_bitmap(struct super_block *sb)
struct exfat_dentry *ep; struct exfat_dentry *ep;
struct buffer_head *bh; struct buffer_head *bh;
ep = exfat_get_dentry(sb, &clu, i, &bh, NULL); ep = exfat_get_dentry(sb, &clu, i, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
......
...@@ -64,7 +64,6 @@ static int exfat_readdir(struct inode *inode, loff_t *cpos, struct exfat_dir_ent ...@@ -64,7 +64,6 @@ static int exfat_readdir(struct inode *inode, loff_t *cpos, struct exfat_dir_ent
{ {
int i, dentries_per_clu, dentries_per_clu_bits = 0, num_ext; int i, dentries_per_clu, dentries_per_clu_bits = 0, num_ext;
unsigned int type, clu_offset, max_dentries; unsigned int type, clu_offset, max_dentries;
sector_t sector;
struct exfat_chain dir, clu; struct exfat_chain dir, clu;
struct exfat_uni_name uni_name; struct exfat_uni_name uni_name;
struct exfat_dentry *ep; struct exfat_dentry *ep;
...@@ -115,7 +114,7 @@ static int exfat_readdir(struct inode *inode, loff_t *cpos, struct exfat_dir_ent ...@@ -115,7 +114,7 @@ static int exfat_readdir(struct inode *inode, loff_t *cpos, struct exfat_dir_ent
i = dentry & (dentries_per_clu - 1); i = dentry & (dentries_per_clu - 1);
for ( ; i < dentries_per_clu; i++, dentry++) { for ( ; i < dentries_per_clu; i++, dentry++) {
ep = exfat_get_dentry(sb, &clu, i, &bh, &sector); ep = exfat_get_dentry(sb, &clu, i, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
...@@ -156,7 +155,7 @@ static int exfat_readdir(struct inode *inode, loff_t *cpos, struct exfat_dir_ent ...@@ -156,7 +155,7 @@ static int exfat_readdir(struct inode *inode, loff_t *cpos, struct exfat_dir_ent
dir_entry->namebuf.lfnbuf_len); dir_entry->namebuf.lfnbuf_len);
brelse(bh); brelse(bh);
ep = exfat_get_dentry(sb, &clu, i + 1, &bh, NULL); ep = exfat_get_dentry(sb, &clu, i + 1, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
dir_entry->size = dir_entry->size =
...@@ -445,7 +444,6 @@ int exfat_init_dir_entry(struct inode *inode, struct exfat_chain *p_dir, ...@@ -445,7 +444,6 @@ int exfat_init_dir_entry(struct inode *inode, struct exfat_chain *p_dir,
struct super_block *sb = inode->i_sb; struct super_block *sb = inode->i_sb;
struct exfat_sb_info *sbi = EXFAT_SB(sb); struct exfat_sb_info *sbi = EXFAT_SB(sb);
struct timespec64 ts = current_time(inode); struct timespec64 ts = current_time(inode);
sector_t sector;
struct exfat_dentry *ep; struct exfat_dentry *ep;
struct buffer_head *bh; struct buffer_head *bh;
...@@ -453,7 +451,7 @@ int exfat_init_dir_entry(struct inode *inode, struct exfat_chain *p_dir, ...@@ -453,7 +451,7 @@ int exfat_init_dir_entry(struct inode *inode, struct exfat_chain *p_dir,
* We cannot use exfat_get_dentry_set here because file ep is not * We cannot use exfat_get_dentry_set here because file ep is not
* initialized yet. * initialized yet.
*/ */
ep = exfat_get_dentry(sb, p_dir, entry, &bh, &sector); ep = exfat_get_dentry(sb, p_dir, entry, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
...@@ -477,7 +475,7 @@ int exfat_init_dir_entry(struct inode *inode, struct exfat_chain *p_dir, ...@@ -477,7 +475,7 @@ int exfat_init_dir_entry(struct inode *inode, struct exfat_chain *p_dir,
exfat_update_bh(bh, IS_DIRSYNC(inode)); exfat_update_bh(bh, IS_DIRSYNC(inode));
brelse(bh); brelse(bh);
ep = exfat_get_dentry(sb, p_dir, entry + 1, &bh, &sector); ep = exfat_get_dentry(sb, p_dir, entry + 1, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
...@@ -496,12 +494,11 @@ int exfat_update_dir_chksum(struct inode *inode, struct exfat_chain *p_dir, ...@@ -496,12 +494,11 @@ int exfat_update_dir_chksum(struct inode *inode, struct exfat_chain *p_dir,
struct super_block *sb = inode->i_sb; struct super_block *sb = inode->i_sb;
int ret = 0; int ret = 0;
int i, num_entries; int i, num_entries;
sector_t sector;
u16 chksum; u16 chksum;
struct exfat_dentry *ep, *fep; struct exfat_dentry *ep, *fep;
struct buffer_head *fbh, *bh; struct buffer_head *fbh, *bh;
fep = exfat_get_dentry(sb, p_dir, entry, &fbh, &sector); fep = exfat_get_dentry(sb, p_dir, entry, &fbh);
if (!fep) if (!fep)
return -EIO; return -EIO;
...@@ -509,7 +506,7 @@ int exfat_update_dir_chksum(struct inode *inode, struct exfat_chain *p_dir, ...@@ -509,7 +506,7 @@ int exfat_update_dir_chksum(struct inode *inode, struct exfat_chain *p_dir,
chksum = exfat_calc_chksum16(fep, DENTRY_SIZE, 0, CS_DIR_ENTRY); chksum = exfat_calc_chksum16(fep, DENTRY_SIZE, 0, CS_DIR_ENTRY);
for (i = 1; i < num_entries; i++) { for (i = 1; i < num_entries; i++) {
ep = exfat_get_dentry(sb, p_dir, entry + i, &bh, NULL); ep = exfat_get_dentry(sb, p_dir, entry + i, &bh);
if (!ep) { if (!ep) {
ret = -EIO; ret = -EIO;
goto release_fbh; goto release_fbh;
...@@ -531,13 +528,12 @@ int exfat_init_ext_entry(struct inode *inode, struct exfat_chain *p_dir, ...@@ -531,13 +528,12 @@ int exfat_init_ext_entry(struct inode *inode, struct exfat_chain *p_dir,
{ {
struct super_block *sb = inode->i_sb; struct super_block *sb = inode->i_sb;
int i; int i;
sector_t sector;
unsigned short *uniname = p_uniname->name; unsigned short *uniname = p_uniname->name;
struct exfat_dentry *ep; struct exfat_dentry *ep;
struct buffer_head *bh; struct buffer_head *bh;
int sync = IS_DIRSYNC(inode); int sync = IS_DIRSYNC(inode);
ep = exfat_get_dentry(sb, p_dir, entry, &bh, &sector); ep = exfat_get_dentry(sb, p_dir, entry, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
...@@ -545,7 +541,7 @@ int exfat_init_ext_entry(struct inode *inode, struct exfat_chain *p_dir, ...@@ -545,7 +541,7 @@ int exfat_init_ext_entry(struct inode *inode, struct exfat_chain *p_dir,
exfat_update_bh(bh, sync); exfat_update_bh(bh, sync);
brelse(bh); brelse(bh);
ep = exfat_get_dentry(sb, p_dir, entry + 1, &bh, &sector); ep = exfat_get_dentry(sb, p_dir, entry + 1, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
...@@ -555,7 +551,7 @@ int exfat_init_ext_entry(struct inode *inode, struct exfat_chain *p_dir, ...@@ -555,7 +551,7 @@ int exfat_init_ext_entry(struct inode *inode, struct exfat_chain *p_dir,
brelse(bh); brelse(bh);
for (i = EXFAT_FIRST_CLUSTER; i < num_entries; i++) { for (i = EXFAT_FIRST_CLUSTER; i < num_entries; i++) {
ep = exfat_get_dentry(sb, p_dir, entry + i, &bh, &sector); ep = exfat_get_dentry(sb, p_dir, entry + i, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
...@@ -574,12 +570,11 @@ int exfat_remove_entries(struct inode *inode, struct exfat_chain *p_dir, ...@@ -574,12 +570,11 @@ int exfat_remove_entries(struct inode *inode, struct exfat_chain *p_dir,
{ {
struct super_block *sb = inode->i_sb; struct super_block *sb = inode->i_sb;
int i; int i;
sector_t sector;
struct exfat_dentry *ep; struct exfat_dentry *ep;
struct buffer_head *bh; struct buffer_head *bh;
for (i = order; i < num_entries; i++) { for (i = order; i < num_entries; i++) {
ep = exfat_get_dentry(sb, p_dir, entry + i, &bh, &sector); ep = exfat_get_dentry(sb, p_dir, entry + i, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
...@@ -717,8 +712,7 @@ static int exfat_dir_readahead(struct super_block *sb, sector_t sec) ...@@ -717,8 +712,7 @@ static int exfat_dir_readahead(struct super_block *sb, sector_t sec)
} }
struct exfat_dentry *exfat_get_dentry(struct super_block *sb, struct exfat_dentry *exfat_get_dentry(struct super_block *sb,
struct exfat_chain *p_dir, int entry, struct buffer_head **bh, struct exfat_chain *p_dir, int entry, struct buffer_head **bh)
sector_t *sector)
{ {
unsigned int dentries_per_page = EXFAT_B_TO_DEN(PAGE_SIZE); unsigned int dentries_per_page = EXFAT_B_TO_DEN(PAGE_SIZE);
int off; int off;
...@@ -740,8 +734,6 @@ struct exfat_dentry *exfat_get_dentry(struct super_block *sb, ...@@ -740,8 +734,6 @@ struct exfat_dentry *exfat_get_dentry(struct super_block *sb,
if (!*bh) if (!*bh)
return NULL; return NULL;
if (sector)
*sector = sec;
return (struct exfat_dentry *)((*bh)->b_data + off); return (struct exfat_dentry *)((*bh)->b_data + off);
} }
...@@ -960,7 +952,7 @@ int exfat_find_dir_entry(struct super_block *sb, struct exfat_inode_info *ei, ...@@ -960,7 +952,7 @@ int exfat_find_dir_entry(struct super_block *sb, struct exfat_inode_info *ei,
if (rewind && dentry == end_eidx) if (rewind && dentry == end_eidx)
goto not_found; goto not_found;
ep = exfat_get_dentry(sb, &clu, i, &bh, NULL); ep = exfat_get_dentry(sb, &clu, i, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
...@@ -1145,7 +1137,7 @@ int exfat_count_ext_entries(struct super_block *sb, struct exfat_chain *p_dir, ...@@ -1145,7 +1137,7 @@ int exfat_count_ext_entries(struct super_block *sb, struct exfat_chain *p_dir,
struct buffer_head *bh; struct buffer_head *bh;
for (i = 0, entry++; i < ep->dentry.file.num_ext; i++, entry++) { for (i = 0, entry++; i < ep->dentry.file.num_ext; i++, entry++) {
ext_ep = exfat_get_dentry(sb, p_dir, entry, &bh, NULL); ext_ep = exfat_get_dentry(sb, p_dir, entry, &bh);
if (!ext_ep) if (!ext_ep)
return -EIO; return -EIO;
...@@ -1175,7 +1167,7 @@ int exfat_count_dir_entries(struct super_block *sb, struct exfat_chain *p_dir) ...@@ -1175,7 +1167,7 @@ int exfat_count_dir_entries(struct super_block *sb, struct exfat_chain *p_dir)
while (clu.dir != EXFAT_EOF_CLUSTER) { while (clu.dir != EXFAT_EOF_CLUSTER) {
for (i = 0; i < dentries_per_clu; i++) { for (i = 0; i < dentries_per_clu; i++) {
ep = exfat_get_dentry(sb, &clu, i, &bh, NULL); ep = exfat_get_dentry(sb, &clu, i, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
entry_type = exfat_get_entry_type(ep); entry_type = exfat_get_entry_type(ep);
......
...@@ -459,8 +459,7 @@ int exfat_find_dir_entry(struct super_block *sb, struct exfat_inode_info *ei, ...@@ -459,8 +459,7 @@ int exfat_find_dir_entry(struct super_block *sb, struct exfat_inode_info *ei,
int num_entries, unsigned int type, struct exfat_hint *hint_opt); int num_entries, unsigned int type, struct exfat_hint *hint_opt);
int exfat_alloc_new_dir(struct inode *inode, struct exfat_chain *clu); int exfat_alloc_new_dir(struct inode *inode, struct exfat_chain *clu);
struct exfat_dentry *exfat_get_dentry(struct super_block *sb, struct exfat_dentry *exfat_get_dentry(struct super_block *sb,
struct exfat_chain *p_dir, int entry, struct buffer_head **bh, struct exfat_chain *p_dir, int entry, struct buffer_head **bh);
sector_t *sector);
struct exfat_dentry *exfat_get_dentry_cached(struct exfat_entry_set_cache *es, struct exfat_dentry *exfat_get_dentry_cached(struct exfat_entry_set_cache *es,
int num); int num);
struct exfat_entry_set_cache *exfat_get_dentry_set(struct super_block *sb, struct exfat_entry_set_cache *exfat_get_dentry_set(struct super_block *sb,
......
...@@ -229,7 +229,7 @@ static int exfat_search_empty_slot(struct super_block *sb, ...@@ -229,7 +229,7 @@ static int exfat_search_empty_slot(struct super_block *sb,
i = dentry & (dentries_per_clu - 1); i = dentry & (dentries_per_clu - 1);
for (; i < dentries_per_clu; i++, dentry++) { for (; i < dentries_per_clu; i++, dentry++) {
ep = exfat_get_dentry(sb, &clu, i, &bh, NULL); ep = exfat_get_dentry(sb, &clu, i, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
type = exfat_get_entry_type(ep); type = exfat_get_entry_type(ep);
...@@ -306,7 +306,6 @@ static int exfat_find_empty_entry(struct inode *inode, ...@@ -306,7 +306,6 @@ static int exfat_find_empty_entry(struct inode *inode,
{ {
int dentry; int dentry;
unsigned int ret, last_clu; unsigned int ret, last_clu;
sector_t sector;
loff_t size = 0; loff_t size = 0;
struct exfat_chain clu; struct exfat_chain clu;
struct exfat_dentry *ep = NULL; struct exfat_dentry *ep = NULL;
...@@ -379,7 +378,7 @@ static int exfat_find_empty_entry(struct inode *inode, ...@@ -379,7 +378,7 @@ static int exfat_find_empty_entry(struct inode *inode,
struct buffer_head *bh; struct buffer_head *bh;
ep = exfat_get_dentry(sb, ep = exfat_get_dentry(sb,
&(ei->dir), ei->entry + 1, &bh, &sector); &(ei->dir), ei->entry + 1, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
...@@ -779,7 +778,6 @@ static int exfat_unlink(struct inode *dir, struct dentry *dentry) ...@@ -779,7 +778,6 @@ static int exfat_unlink(struct inode *dir, struct dentry *dentry)
struct inode *inode = dentry->d_inode; struct inode *inode = dentry->d_inode;
struct exfat_inode_info *ei = EXFAT_I(inode); struct exfat_inode_info *ei = EXFAT_I(inode);
struct buffer_head *bh; struct buffer_head *bh;
sector_t sector;
int num_entries, entry, err = 0; int num_entries, entry, err = 0;
mutex_lock(&EXFAT_SB(sb)->s_lock); mutex_lock(&EXFAT_SB(sb)->s_lock);
...@@ -791,7 +789,7 @@ static int exfat_unlink(struct inode *dir, struct dentry *dentry) ...@@ -791,7 +789,7 @@ static int exfat_unlink(struct inode *dir, struct dentry *dentry)
goto unlock; goto unlock;
} }
ep = exfat_get_dentry(sb, &cdir, entry, &bh, &sector); ep = exfat_get_dentry(sb, &cdir, entry, &bh);
if (!ep) { if (!ep) {
err = -EIO; err = -EIO;
goto unlock; goto unlock;
...@@ -895,7 +893,7 @@ static int exfat_check_dir_empty(struct super_block *sb, ...@@ -895,7 +893,7 @@ static int exfat_check_dir_empty(struct super_block *sb,
while (clu.dir != EXFAT_EOF_CLUSTER) { while (clu.dir != EXFAT_EOF_CLUSTER) {
for (i = 0; i < dentries_per_clu; i++) { for (i = 0; i < dentries_per_clu; i++) {
ep = exfat_get_dentry(sb, &clu, i, &bh, NULL); ep = exfat_get_dentry(sb, &clu, i, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
type = exfat_get_entry_type(ep); type = exfat_get_entry_type(ep);
...@@ -932,7 +930,6 @@ static int exfat_rmdir(struct inode *dir, struct dentry *dentry) ...@@ -932,7 +930,6 @@ static int exfat_rmdir(struct inode *dir, struct dentry *dentry)
struct exfat_sb_info *sbi = EXFAT_SB(sb); struct exfat_sb_info *sbi = EXFAT_SB(sb);
struct exfat_inode_info *ei = EXFAT_I(inode); struct exfat_inode_info *ei = EXFAT_I(inode);
struct buffer_head *bh; struct buffer_head *bh;
sector_t sector;
int num_entries, entry, err; int num_entries, entry, err;
mutex_lock(&EXFAT_SB(inode->i_sb)->s_lock); mutex_lock(&EXFAT_SB(inode->i_sb)->s_lock);
...@@ -957,7 +954,7 @@ static int exfat_rmdir(struct inode *dir, struct dentry *dentry) ...@@ -957,7 +954,7 @@ static int exfat_rmdir(struct inode *dir, struct dentry *dentry)
goto unlock; goto unlock;
} }
ep = exfat_get_dentry(sb, &cdir, entry, &bh, &sector); ep = exfat_get_dentry(sb, &cdir, entry, &bh);
if (!ep) { if (!ep) {
err = -EIO; err = -EIO;
goto unlock; goto unlock;
...@@ -1005,13 +1002,12 @@ static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir, ...@@ -1005,13 +1002,12 @@ static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir,
struct exfat_inode_info *ei) struct exfat_inode_info *ei)
{ {
int ret, num_old_entries, num_new_entries; int ret, num_old_entries, num_new_entries;
sector_t sector_old, sector_new;
struct exfat_dentry *epold, *epnew; struct exfat_dentry *epold, *epnew;
struct super_block *sb = inode->i_sb; struct super_block *sb = inode->i_sb;
struct buffer_head *new_bh, *old_bh; struct buffer_head *new_bh, *old_bh;
int sync = IS_DIRSYNC(inode); int sync = IS_DIRSYNC(inode);
epold = exfat_get_dentry(sb, p_dir, oldentry, &old_bh, &sector_old); epold = exfat_get_dentry(sb, p_dir, oldentry, &old_bh);
if (!epold) if (!epold)
return -EIO; return -EIO;
...@@ -1032,8 +1028,7 @@ static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir, ...@@ -1032,8 +1028,7 @@ static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir,
if (newentry < 0) if (newentry < 0)
return newentry; /* -EIO or -ENOSPC */ return newentry; /* -EIO or -ENOSPC */
epnew = exfat_get_dentry(sb, p_dir, newentry, &new_bh, epnew = exfat_get_dentry(sb, p_dir, newentry, &new_bh);
&sector_new);
if (!epnew) if (!epnew)
return -EIO; return -EIO;
...@@ -1046,12 +1041,10 @@ static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir, ...@@ -1046,12 +1041,10 @@ static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir,
brelse(old_bh); brelse(old_bh);
brelse(new_bh); brelse(new_bh);
epold = exfat_get_dentry(sb, p_dir, oldentry + 1, &old_bh, epold = exfat_get_dentry(sb, p_dir, oldentry + 1, &old_bh);
&sector_old);
if (!epold) if (!epold)
return -EIO; return -EIO;
epnew = exfat_get_dentry(sb, p_dir, newentry + 1, &new_bh, epnew = exfat_get_dentry(sb, p_dir, newentry + 1, &new_bh);
&sector_new);
if (!epnew) { if (!epnew) {
brelse(old_bh); brelse(old_bh);
return -EIO; return -EIO;
...@@ -1093,12 +1086,11 @@ static int exfat_move_file(struct inode *inode, struct exfat_chain *p_olddir, ...@@ -1093,12 +1086,11 @@ static int exfat_move_file(struct inode *inode, struct exfat_chain *p_olddir,
struct exfat_uni_name *p_uniname, struct exfat_inode_info *ei) struct exfat_uni_name *p_uniname, struct exfat_inode_info *ei)
{ {
int ret, newentry, num_new_entries, num_old_entries; int ret, newentry, num_new_entries, num_old_entries;
sector_t sector_mov, sector_new;
struct exfat_dentry *epmov, *epnew; struct exfat_dentry *epmov, *epnew;
struct super_block *sb = inode->i_sb; struct super_block *sb = inode->i_sb;
struct buffer_head *mov_bh, *new_bh; struct buffer_head *mov_bh, *new_bh;
epmov = exfat_get_dentry(sb, p_olddir, oldentry, &mov_bh, &sector_mov); epmov = exfat_get_dentry(sb, p_olddir, oldentry, &mov_bh);
if (!epmov) if (!epmov)
return -EIO; return -EIO;
...@@ -1116,7 +1108,7 @@ static int exfat_move_file(struct inode *inode, struct exfat_chain *p_olddir, ...@@ -1116,7 +1108,7 @@ static int exfat_move_file(struct inode *inode, struct exfat_chain *p_olddir,
if (newentry < 0) if (newentry < 0)
return newentry; /* -EIO or -ENOSPC */ return newentry; /* -EIO or -ENOSPC */
epnew = exfat_get_dentry(sb, p_newdir, newentry, &new_bh, &sector_new); epnew = exfat_get_dentry(sb, p_newdir, newentry, &new_bh);
if (!epnew) if (!epnew)
return -EIO; return -EIO;
...@@ -1129,12 +1121,10 @@ static int exfat_move_file(struct inode *inode, struct exfat_chain *p_olddir, ...@@ -1129,12 +1121,10 @@ static int exfat_move_file(struct inode *inode, struct exfat_chain *p_olddir,
brelse(mov_bh); brelse(mov_bh);
brelse(new_bh); brelse(new_bh);
epmov = exfat_get_dentry(sb, p_olddir, oldentry + 1, &mov_bh, epmov = exfat_get_dentry(sb, p_olddir, oldentry + 1, &mov_bh);
&sector_mov);
if (!epmov) if (!epmov)
return -EIO; return -EIO;
epnew = exfat_get_dentry(sb, p_newdir, newentry + 1, &new_bh, epnew = exfat_get_dentry(sb, p_newdir, newentry + 1, &new_bh);
&sector_new);
if (!epnew) { if (!epnew) {
brelse(mov_bh); brelse(mov_bh);
return -EIO; return -EIO;
...@@ -1216,7 +1206,7 @@ static int __exfat_rename(struct inode *old_parent_inode, ...@@ -1216,7 +1206,7 @@ static int __exfat_rename(struct inode *old_parent_inode,
exfat_chain_dup(&olddir, &ei->dir); exfat_chain_dup(&olddir, &ei->dir);
dentry = ei->entry; dentry = ei->entry;
ep = exfat_get_dentry(sb, &olddir, dentry, &old_bh, NULL); ep = exfat_get_dentry(sb, &olddir, dentry, &old_bh);
if (!ep) { if (!ep) {
ret = -EIO; ret = -EIO;
goto out; goto out;
...@@ -1237,7 +1227,7 @@ static int __exfat_rename(struct inode *old_parent_inode, ...@@ -1237,7 +1227,7 @@ static int __exfat_rename(struct inode *old_parent_inode,
p_dir = &(new_ei->dir); p_dir = &(new_ei->dir);
new_entry = new_ei->entry; new_entry = new_ei->entry;
ep = exfat_get_dentry(sb, p_dir, new_entry, &new_bh, NULL); ep = exfat_get_dentry(sb, p_dir, new_entry, &new_bh);
if (!ep) if (!ep)
goto out; goto out;
...@@ -1277,7 +1267,7 @@ static int __exfat_rename(struct inode *old_parent_inode, ...@@ -1277,7 +1267,7 @@ static int __exfat_rename(struct inode *old_parent_inode,
if (!ret && new_inode) { if (!ret && new_inode) {
/* delete entries of new_dir */ /* delete entries of new_dir */
ep = exfat_get_dentry(sb, p_dir, new_entry, &new_bh, NULL); ep = exfat_get_dentry(sb, p_dir, new_entry, &new_bh);
if (!ep) { if (!ep) {
ret = -EIO; ret = -EIO;
goto del_out; goto del_out;
......
...@@ -761,7 +761,7 @@ int exfat_create_upcase_table(struct super_block *sb) ...@@ -761,7 +761,7 @@ int exfat_create_upcase_table(struct super_block *sb)
while (clu.dir != EXFAT_EOF_CLUSTER) { while (clu.dir != EXFAT_EOF_CLUSTER) {
for (i = 0; i < sbi->dentries_per_clu; i++) { for (i = 0; i < sbi->dentries_per_clu; i++) {
ep = exfat_get_dentry(sb, &clu, i, &bh, NULL); ep = exfat_get_dentry(sb, &clu, i, &bh);
if (!ep) if (!ep)
return -EIO; return -EIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment