<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
@font-face
        {font-family:"Lucida Sans";
        panose-1:2 11 6 2 3 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello<o:p></o:p></p><p class=MsoNormal>I am trying to log all the calls going to the VFS file system from the application. <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>For write calls I notice an anomaly.&nbsp; I introduced a log at the vfs_write() function , I see it get&#8217;s logged twice &nbsp;for every write in the log output. <o:p></o:p></p><p class=MsoNormal>I also tried do_sync_write() the result is same.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Time stamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VFS Action&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; filename&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time taken(us)<o:p></o:p></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=1126 style='width:844.25pt;margin-left:-.75pt;border-collapse:collapse'><tr style='height:14.25pt'><td width=100 nowrap valign=bottom style='width:74.65pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>626.212738<o:p></o:p></span></p></td><td width=160 nowrap valign=bottom style='width:120.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'> OPEN<o:p></o:p></span></p></td><td width=365 nowrap valign=bottom style='width:274.1pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>/data/media/DCIM/Camera/VID_20000101_002412.mp4.tmp <o:p></o:p></span></p></td><td width=90 nowrap valign=bottom style='width:67.5pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>flags=131585 <o:p></o:p></span></p></td><td width=171 nowrap valign=bottom style='width:128.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>mode =0<o:p></o:p></span></p></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td></tr><tr style='height:14.25pt'><td width=100 nowrap valign=bottom style='width:74.65pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>&nbsp; 628.187652<o:p></o:p></span></p></td><td width=160 nowrap valign=bottom style='width:120.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'> WRITE<o:p></o:p></span></p></td><td width=365 nowrap valign=bottom style='width:274.1pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'> VID_20000101_002412.mp4.tmp <o:p></o:p></span></p></td><td width=90 nowrap valign=bottom style='width:67.5pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>101606<o:p></o:p></span></p></td><td width=171 nowrap valign=bottom style='width:128.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>611<o:p></o:p></span></p></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td></tr><tr style='height:14.25pt'><td width=100 nowrap valign=bottom style='width:74.65pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>&nbsp; 628.187713<o:p></o:p></span></p></td><td width=160 nowrap valign=bottom style='width:120.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'> WRITE<o:p></o:p></span></p></td><td width=365 nowrap valign=bottom style='width:274.1pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'> VID_20000101_002412.mp4.tmp <o:p></o:p></span></p></td><td width=90 nowrap valign=bottom style='width:67.5pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>101606<o:p></o:p></span></p></td><td width=171 nowrap valign=bottom style='width:128.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>1160<o:p></o:p></span></p></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td></tr></table><p class=MsoNormal><span style='font-size:9.0pt'><o:p>&nbsp;</o:p></span></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=1009 style='width:756.75pt;margin-left:-.75pt;border-collapse:collapse'><tr style='height:14.25pt'><td width=104 nowrap valign=bottom style='width:78.15pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>&nbsp; 628.188995<o:p></o:p></span></p></td><td width=160 nowrap valign=bottom style='width:120.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'> WRITE<o:p></o:p></span></p></td><td width=259 nowrap valign=bottom style='width:194.1pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'> VID_20000101_002412.mp4.tmp <o:p></o:p></span></p></td><td width=156 nowrap valign=bottom style='width:117.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal align=right style='text-align:right'><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>69782<o:p></o:p></span></p></td><td width=90 nowrap valign=bottom style='width:67.5pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal align=right style='text-align:right'><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>457<o:p></o:p></span></p></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td></tr><tr style='height:14.25pt'><td width=104 nowrap valign=bottom style='width:78.15pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>&nbsp; 628.189056<o:p></o:p></span></p></td><td width=160 nowrap valign=bottom style='width:120.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'> WRITE<o:p></o:p></span></p></td><td width=259 nowrap valign=bottom style='width:194.1pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'> VID_20000101_002412.mp4.tmp <o:p></o:p></span></p></td><td width=156 nowrap valign=bottom style='width:117.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal align=right style='text-align:right'><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>69782<o:p></o:p></span></p></td><td width=90 nowrap valign=bottom style='width:67.5pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'><p class=MsoNormal align=right style='text-align:right'><span style='font-size:9.0pt;font-family:"Lucida Sans","sans-serif";color:black'>885<o:p></o:p></span></p></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td><td width=80 nowrap valign=bottom style='width:60.0pt;padding:0in 5.4pt 0in 5.4pt;height:14.25pt'></td></tr></table><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Any clue why this anomaly ?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='color:#1F497D'>Warm Regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Georgia","serif";color:#1F497D'>Raghavendra G</span><span style='color:#1F497D'> </span><span lang=IT-CH><o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>