~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to fs/xfs/linux-2.6/xfs_sync.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
 
268
268
        error = xfs_iflush(ip, flags);
269
269
 
 
270
        /*
 
271
         * We don't want to try again on non-blocking flushes that can't run
 
272
         * again immediately. If an inode really must be written, then that's
 
273
         * what the SYNC_WAIT flag is for.
 
274
         */
 
275
        if (error == EAGAIN) {
 
276
                ASSERT(!(flags & SYNC_WAIT));
 
277
                error = 0;
 
278
        }
 
279
 
270
280
 out_unlock:
271
281
        xfs_iunlock(ip, XFS_ILOCK_SHARED);
272
282
        return error;
1022
1032
static int
1023
1033
xfs_reclaim_inode_shrink(
1024
1034
        struct shrinker *shrink,
1025
 
        int             nr_to_scan,
1026
 
        gfp_t           gfp_mask)
 
1035
        struct shrink_control *sc)
1027
1036
{
1028
1037
        struct xfs_mount *mp;
1029
1038
        struct xfs_perag *pag;
1030
1039
        xfs_agnumber_t  ag;
1031
1040
        int             reclaimable;
 
1041
        int nr_to_scan = sc->nr_to_scan;
 
1042
        gfp_t gfp_mask = sc->gfp_mask;
1032
1043
 
1033
1044
        mp = container_of(shrink, struct xfs_mount, m_inode_shrink);
1034
1045
        if (nr_to_scan) {