X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fcoda%2Fupcall.c;h=9b1ffaa0572e5825d8c617880bfbc19be166313b;hb=38fe44e61a894f1c7b3e60b0614030271070ea53;hp=5bb6e27298a469d3a20bf3e54ef37e79d3435f76;hpb=05244d166739ae273fdc7a2151bdef61df49ca7d;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/coda/upcall.c b/fs/coda/upcall.c index 5bb6e27298a4..9b1ffaa0572e 100644 --- a/fs/coda/upcall.c +++ b/fs/coda/upcall.c @@ -820,8 +820,8 @@ int coda_downcall(struct venus_comm *vcp, int opcode, union outputArgs *out) case CODA_FLUSH: coda_cache_clear_all(sb); shrink_dcache_sb(sb); - if (sb->s_root->d_inode) - coda_flag_inode(sb->s_root->d_inode, C_FLUSH); + if (d_really_is_positive(sb->s_root)) + coda_flag_inode(d_inode(sb->s_root), C_FLUSH); break; case CODA_PURGEUSER: