staging: exfat: remove exfat_buf_sync()
authorKaaira Gupta <kgupta@es.iitr.ac.in>
Sun, 23 Feb 2020 19:16:23 +0000 (00:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 23 Feb 2020 19:29:05 +0000 (20:29 +0100)
exfat_buf_sync() is not called anywhere, hence remove it from
exfat_cache.c and exfat.h

Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
Link: https://lore.kernel.org/r/20200223191623.GA20122@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 74f1abeda53acadacf94901d1dba013485ef75d0..4a0a481fe010c1f351a7612db480f1a506f8982f 100644 (file)
@@ -653,7 +653,6 @@ void exfat_buf_lock(struct super_block *sb, sector_t sec);
 void exfat_buf_unlock(struct super_block *sb, sector_t sec);
 void exfat_buf_release(struct super_block *sb, sector_t sec);
 void exfat_buf_release_all(struct super_block *sb);
-void exfat_buf_sync(struct super_block *sb);
 
 /* fs management functions */
 void fs_set_vol_flags(struct super_block *sb, u32 new_flag);
index 790ea4df9c00e561d48bba9b5801a4cde0375fe5..87d01997205041209b6edd011bedbd747f9f1c8c 100644 (file)
@@ -515,22 +515,3 @@ void exfat_buf_release_all(struct super_block *sb)
 
        mutex_unlock(&b_mutex);
 }
-
-void exfat_buf_sync(struct super_block *sb)
-{
-       struct buf_cache_t *bp;
-       struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
-
-       mutex_lock(&b_mutex);
-
-       bp = p_fs->buf_cache_lru_list.next;
-       while (bp != &p_fs->buf_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(&b_mutex);
-}