~ubuntu-branches/ubuntu/quantal/linux-ti-omap4/quantal-proposed

« back to all changes in this revision

Viewing changes to fs/nfsd/nfs4state.c

  • Committer: Package Import Robot
  • Author(s): Brad Figg, Brad Figg
  • Date: 2013-06-08 09:09:23 UTC
  • Revision ID: package-import@ubuntu.com-20130608090923-ibtnp6edtrn3sxik
Tags: 3.5.0-226.39
[ Brad Figg ]

UBUNTU: Fixup missing abi files causing FTBS

Show diffs side-by-side

added added

removed removed

Lines of Context:
214
214
{
215
215
        if (atomic_dec_and_test(&fp->fi_access[oflag])) {
216
216
                nfs4_file_put_fd(fp, oflag);
217
 
                /*
218
 
                 * It's also safe to get rid of the RDWR open *if*
219
 
                 * we no longer have need of the other kind of access
220
 
                 * or if we already have the other kind of open:
221
 
                 */
222
 
                if (fp->fi_fds[1-oflag]
223
 
                        || atomic_read(&fp->fi_access[1 - oflag]) == 0)
 
217
                if (atomic_read(&fp->fi_access[1 - oflag]) == 0)
224
218
                        nfs4_file_put_fd(fp, O_RDWR);
225
219
        }
226
220
}