OSDN Git Service

staging: exfat: remove exfat_fat_sync()
authorKaaira Gupta <kgupta@es.iitr.ac.in>
Wed, 19 Feb 2020 16:17:38 +0000 (21:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 23 Feb 2020 18:17:25 +0000 (19:17 +0100)
exfat_fat_sync() is not called anywhere, hence remove it from
exfat_cache.c and exfat.h

Acked-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
Link: https://lore.kernel.org/r/20200219161738.GA22282@kaaira-HP-Pavilion-Notebook
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/exfat/exfat.h
drivers/staging/exfat/exfat_cache.c

index c4ef6c2..e36d01b 100644 (file)
@@ -647,7 +647,6 @@ s32 exfat_fat_write(struct super_block *sb, u32 loc, u32 content);
 u8 *exfat_fat_getblk(struct super_block *sb, sector_t sec);
 void exfat_fat_modify(struct super_block *sb, sector_t sec);
 void exfat_fat_release_all(struct super_block *sb);
-void exfat_fat_sync(struct super_block *sb);
 u8 *exfat_buf_getblk(struct super_block *sb, sector_t sec);
 void exfat_buf_modify(struct super_block *sb, sector_t sec);
 void exfat_buf_lock(struct super_block *sb, sector_t sec);
index 3fd5604..790ea4d 100644 (file)
@@ -341,25 +341,6 @@ void exfat_fat_release_all(struct super_block *sb)
        mutex_unlock(&f_mutex);
 }
 
-void exfat_fat_sync(struct super_block *sb)
-{
-       struct buf_cache_t *bp;
-       struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
-
-       mutex_lock(&f_mutex);
-
-       bp = p_fs->FAT_cache_lru_list.next;
-       while (bp != &p_fs->FAT_cache_lru_list) {
-               if ((bp->drv == p_fs->drv) && (bp->flag & DIRTYBIT)) {
-                       sync_dirty_buffer(bp->buf_bh);
-                       bp->flag &= ~(DIRTYBIT);
-               }
-               bp = bp->next;
-       }
-
-       mutex_unlock(&f_mutex);
-}
-
 static struct buf_cache_t *buf_cache_find(struct super_block *sb, sector_t sec)
 {
        s32 off;